#include <REGX52.H>
#include "ds18b20.h"
#include "LCD1602.h"
float T;
void main(){
	LCD_Init();
	LCD_ShowString(1,1,"Temperature");
		//LCD_ShowString(2,1,"Temperature");
	while(1){
		ConvertT();
		T=ReadT();
		if(T<0){
			LCD_ShowChar(2,1,'-');
			T=-T;
		}
		else{
			LCD_ShowChar(2,1,'+');
		}
		LCD_ShowChar(2,5,'.');
		LCD_ShowNum(2,2,T,3);
		LCD_ShowNum(2,6,(unsigned long)(T*10000)%10000,4);
}
	}